package com.temp.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

@Data
public class SendCaptchaDTO {
    @NotBlank(message = "apiMsg.emailNotNull")
    @Email(message = "apiMsg.emailNotTrue")
    private String email;

    @NotBlank(message = "apiMsg.userNameNotNull")
    @Length(min = 4, max = 20, message = "apiMsg.userNameRange,4~20")
    private String username;
}
